package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SetColumnDefaultClause implements AlterColumnAction {

    private final int beginIndex;
    private final int endIndex;
    private final DefaultClause defaultClause;

    public SetColumnDefaultClause(int beginIndex, DefaultClause defaultClause) {
        this.beginIndex = beginIndex;
        this.endIndex = defaultClause.getEndIndex();
        this.defaultClause = defaultClause;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public DefaultClause getDefaultClause() {
        return defaultClause;
    }

}
